package com.cecsmsserve.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cecsmsserve.entity.NewsCategory;
import com.cecsmsserve.util.result.CommonResult;

public interface NewsCategoryService extends IService<NewsCategory> {
    
    /**
     * 添加分类
     */
    CommonResult addCategory(NewsCategory category);
    
    /**
     * 更新分类
     */
    CommonResult updateCategory(NewsCategory category);
    
    /**
     * 删除分类
     */
    CommonResult deleteCategory(Integer id);
    
    /**
     * 获取分类列表
     */
    CommonResult getCategoryList();
    
    /**
     * 更新分类状态
     */
    CommonResult updateCategoryStatus(Integer id, Integer status);
    
    /**
     * 获取新闻的分类
     */
    CommonResult getNewsCategoryIds(Integer newsId);
} 